CXX = g++
#CXX = arm-linux-g++
#CXX= arm-vfp-linux-gnu-g++

PROG_NAME = setUpNetDevice test

all:${PROG_NAME}

setUpNetDevice : wifiDevice.o zigbeeDevice.o netDevice.o thread.o setUpNetDevice.o common.o readConig.o
	${CXX} -o setUpNetDevice common.o wifiDevice.o zigbeeDevice.o netDevice.o readConig.o thread.o setUpNetDevice.o -lpthread

test : test.o registrar.o
	ar -rc libswitchNetwork.a common.o readConig.o registrar.o
	${CXX} -o test test.o  -lpthread -L/root/trunk/switchNetwork libswitchNetwork.a
clean:
	rm -f *.o ${PROG_NAME} *.a

test.o : test.cpp
	${CXX} -c -I/root/trunk/switchNetwork test.cpp
wifiDevice.o : wifiDevice.cpp wifiDevice.h
zigbeeDevice.o : zigbeeDevice.cpp zigbeeDevice.h
netDevice.o : netDevice.cpp netDevice.h
thread.o : thread.cpp thread.h
setUpNetDevice.o : setUpNetDevice.cpp
common.o : common.cpp common.h
readConig.o : readConig.cpp readConig.h
registrar.o : registrar.cpp registrar.h

rebuild : clean all
